#include <stdio.h>
#define N 5

int main()
{
    int a[N] = {1,12,21,15,25};
    int num,i,index;
    scanf("%d\n",&num);
    for(i=0;i<N;i++)
    {
        if(a[i]==num)
        {
            index = i;
            break;
        }
    }
    for(i=index;i<N-1;i++)
    {
        a[i] = a[i+1];
    }
    printf("%d\n",N-1);
    for(i=0;i<N-1;i++)
    {
        printf("%d\t",a[i]);
    }
    return 0;
}
